<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  let arr = ['咬人猫','兔总裁','张奶糖'];
  arr.push('大米饭');
  console.log(arr);
  arr.splice(2,1);
  console.log(arr);
  arr.splice(2,1,'小米粥');
  console.log(arr);
  arr.splice(2,1,'小米粥','小米粥','小米粥');
  console.log(arr);
  arr[-1]='why?';
  console.log(arr);
  arr[100]='就越界反正也不报错';
  console.log(arr);


</script>

</body>
</html>